import { cn } from "@/common/cn";

type Props = {
  code: string;
  message: string;
  class?: string | undefined;
};

export default function ErrorViewer(p: Props) {
  return (
    <div class={cn("flex justify-center", p.class)}>
      <div class="flex items-center text-2xl font-bold pr-6">{p.code}</div>
      <p class="flex items-center border-l py-4 pl-6 text-gray-600">{p.message}</p>
    </div>
  );
}
